package practice_0524;

public class practice02 {
    public static void main(String[] args) {
        int[][] arr = new int [][]{{91,25,8},{56,14,2},{47,3,67}};
         int[][] tmp = new int [arr.length][arr[1].length];
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[0].length; j++) {
                System.out.print(arr[i][j] + " ");
            }
            System.out.println();
        }
        System.out.println("转换后：");
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[0].length; j++) {
                tmp[i][j] = arr[j][i];
            }
        }
        arr = tmp;
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[0].length; j++) {
                System.out.print(arr[i][j] + " ");
            }
            System.out.println();
        }
    }
}
